package cn.edu.ujn.booksshop.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.ujn.booksshop.dao.User;

public interface UserMapper {
	//userMangment.jsp中删除user
    int deleteByPrimaryKey(Integer userid);
    
    int insert(User row);
  //userMangment.jsp中创建user
    int insertSelective(User row);

    User selectByPrimaryKey(Integer userid);
    //userMangment.jsp中更新user
    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);
    
    //添加登录
    User findUser(User user);
    // 通过id查找用户
 	User findUserById(Integer id);
    ////userMangment.jsp查找所有user
    List<User>selectAll(@Param("page") Integer page,@Param("rows") Integer rows);
    
    Integer selectCount();
}